Skip to content

docs: clarify deprecated std_msgs String usage - #7505

Open
abhishek5127-hash wants to merge 6 commits into
ros2:rollingfrom
abhishek5127-hash:fix/python-pubsub-example-interfaces
Open

abhishek5127-hash wants to merge 6 commits into
ros2:rollingfrom
abhishek5127-hash:fix/python-pubsub-example-interfaces

Conversation

@abhishek5127-hash

Copy link
Copy Markdown

Summary

  • Clarifies that std_msgs/msg/String is deprecated as of ROS 2 Foxy.
  • Explains why it is retained in this beginner tutorial.
  • Recommends semantically meaningful message types for deployed systems.

Related issue

Related to #7482.

Validation

  • git diff --check passed.
  • Full documentation build and lint are pending.

Review request

This PR proposes the documentation-only alternative discussed in issue #7482. Feedback from maintainers is welcome.

@abhishek5127-hash
abhishek5127-hash marked this pull request as ready for review November 20, 2026 08:43
@abhishek5127-hash

Copy link
Copy Markdown
Author

Hi @joaaosc,

I have opened a PR (#7505) to address the deprecated std_msgs/msg/String usage in the Python publisher/subscriber tutorial.

I would appreciate your feedback on the proposed changes. Please let me know if any further modifications or improvements are needed.

Thank you for your guidance!

@christophebedard christophebedard left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I think we should instead change the underlying example code to use example_interfaces/msg/String instead of std_msgs/msg/String.

This means:

  1. Updating the example(s) source code in https://github.com/ros2/examples
  2. Updating the example(s) code here in the documentation

@christophebedard

Copy link
Copy Markdown
Member

wait, there's already a PR open for (1). I need to follow-up on the discussion here: ros2/examples#377

Signed-off-by: abhishek5127-hash <abhishekmt831@gmail.com>
Signed-off-by: abhishek5127-hash <abhishekmt831@gmail.com>
Signed-off-by: abhishek5127-hash <abhishekmt831@gmail.com>
@abhishek5127-hash

Copy link
Copy Markdown
Author

Hi @christophebedard,

I checked the upstream discussion in [ros2/examples#377](ros2/examples#377). The PR is still open, and the latest discussion indicates that switching the examples to example_interfaces is being considered for Rolling.

Since the tutorial downloads the publisher and subscriber code directly from ros2/examples, I think we should keep the documentation aligned with the upstream changes to avoid a mismatch.

Could you please let me know whether I should wait for the upstream PR to be resolved before making any further changes to this tutorial?

Thank you!

@abhishek5127-hash

Copy link
Copy Markdown
Author

hi @christophebedard,

The corresponding Python publisher and subscriber examples in ros2/examples have also been updated to use example_interfaces/msg/String instead of std_msgs/msg/String.

I've opened a separate PR for these changes: [ros2/examples#479](ros2/examples#479).

The source changes have passed the DCO and Mergify checks. The build check is currently running.

This addresses the reviewer's request to update the underlying source examples as well. Thank you for the feedback!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants